package com.cswangdao.service;

import com.cswangdao.domain.dto.GoodsAddDTO;
import com.cswangdao.domain.dto.GoodsPageDTO;
import com.cswangdao.domain.po.Goods;
import com.cswangdao.domain.vo.*;
import com.cswangdao.result.PageResult;

public interface GoodsService {
    PageResult<Goods> pageQueryInfo(GoodsPageDTO goodsPageDTO);

    boolean insert(GoodsAddDTO goodsAddDTO);

    boolean deleteById(Integer id);

    GoodsDetailVo queryById(int goodsId);

    CatAndBrandVo getCatAndBrandList();

    boolean update(GoodsAddDTO goodsUpdate);

    WXHomeIndexVo index();

    WXGoodsDetailVo getWxGoodsDetail(Integer goodsId);

    PageResult<WXGoodsRelatedVo> getWxGoodsRelated(Integer id);
}
